int IT_exists(char* ip, int port, int pid, int worker_port, struct info_table* table_ptr);
void IT_make_dead(char* ip, int port, struct info_table* table_ptr);
void IT_add(char *ip, int port, int pid, int worker_port, struct info_table* table_ptr);
void IT_print(struct info_table* table_ptr);
void IT_make_idle(char* ip, int port, int pid, struct info_table* table_ptr);
int IT_get_number(char* ip, int port, struct info_table* table_ptr);

void PF_set_sent(int number, FILE* file);
void PF_set_not_sent(int number, FILE* file);
void PF_set_not_received_and_not_sent(int number, FILE* file);
void PF_set_received_not_divisor(int number, FILE* file);
void PF_set_received_divisor(int number, FILE* file);
struct prime_str PF_get_first_not_sent(FILE* file);
void PF_clear_primes(FILE* file);
